package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author makejava
 * @since 2022-04-01 17:03:04
 */
@Data
@TableName("datasource")
@ApiModel(description = "信息类")
public class Datasource implements Serializable {
    private static final long serialVersionUID = 391928578006473950L;

    @ApiModelProperty("$column.comment")
    @TableId(value = "datasource_id", type = IdType.ASSIGN_ID)
    private String datasourceId;

    @ApiModelProperty("$column.comment")
    private String url;

    @ApiModelProperty("$column.comment")
    private String userName;

    @ApiModelProperty("$column.comment")
    private String passWord;

    @ApiModelProperty("$column.comment")
    private String databaseType;

}

